'use strict'

class  aspiration{
  
  constructor () {

  }
  //得到动态列表
  async list (c) {
    // console.log(c.query)
    let wuser = c.service.model.aspiration
    let ulist = await wuser.list()
    c.send(ulist)
  }

  async put(c){
    let id=c.param.id
    let data=JSON.parse(c.body)
    let wuser = c.service.model.aspiration
    await wuser.update(data,id)
  }

}

module.exports = aspiration